//
//  Helper.swift
//  xcodesort-es
//
//  Created by 赵梁 on 2021/5/26.
//

import Foundation

struct Helper {

  static func namespacedIdentifier(identifier: String) -> String {
    let bundleID = Bundle.main.bundleIdentifier ?? ""
    return "\(bundleID).\(identifier)"
      .replacingOccurrences(of: "+", with: "plus")
      .replacingOccurrences(of: " ", with: "-")
  }
}
